package com.zoffy.ybuhelper.pojo.entity;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "gpt_message")
public class Message {
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @NonNull
    public Integer getOrigin() {
        return origin;
    }

    public void setOrigin(@NonNull Integer origin) {
        this.origin = origin;
    }

    @NonNull
    public String getMessage() {
        return message;
    }

    public void setMessage(@NonNull String message) {
        this.message = message;
    }

    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id",typeAffinity = ColumnInfo.INTEGER)
    private Integer id;

    //表示消息发送方,0为己方,1为对方
    @NonNull
    @ColumnInfo(name = "origin",typeAffinity = ColumnInfo.INTEGER)
    private Integer origin;
    @NonNull
    @ColumnInfo(name = "message",typeAffinity = ColumnInfo.TEXT)
    private String message;

}
